import request from '@/utils/request'

// 查询人群聚集列表
export function listPeoplewarn(query) {
  return request({
    url: '/ruoyi-aimp/peoplewarn/list',
    method: 'get',
    params: query
  })
}

// 查询人群聚集详细
export function getPeoplewarn(peoplewarnId) {
  return request({
    url: '/ruoyi-aimp/peoplewarn/' + peoplewarnId,
    method: 'get'
  })
}

// 新增人群聚集
export function addPeoplewarn(data) {
  return request({
    url: '/ruoyi-aimp/peoplewarn',
    method: 'post',
    data: data
  })
}

// 修改人群聚集
export function updatePeoplewarn(data) {
  return request({
    url: '/ruoyi-aimp/peoplewarn',
    method: 'put',
    data: data
  })
}

// 删除人群聚集
export function delPeoplewarn(peoplewarnId) {
  return request({
    url: '/ruoyi-aimp/peoplewarn/' + peoplewarnId,
    method: 'delete'
  })
}
